package org.example.commonapi.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 收件箱
 * @TableName inbox
 */
@TableName(value ="inbox")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Inbox implements Serializable {
    /**
     * 收件箱id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 对应id
     */
    private Long oneId;

    /**
     * 信息类型
     */
    private Integer type;

    /**
     * 收件内容
     */
    private String content;

    /**
     * 任务时间
     */
    private LocalDateTime createTime;

    /**
     * 结束时间
     */
    private LocalDateTime endTime;

    /**
     * 构造函数
     */
    public Inbox(String content,Long userID,Long ondId,Integer type,LocalDateTime createTime,LocalDateTime endTime){
        this.content = content;
        this.userId = userID;
        this.oneId = ondId;
        this.type = type;
        this.createTime = createTime;
        this.endTime = endTime;
    }

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}